#include <TGS/GeoMath2.0/MultiPolygon.h>

namespace TGS{
namespace GeoMath{

void MultiPolygon::addPolygon(const Polygon& polygon)
{
	_polygonContainer.push_back(polygon);
}

const Polygon& MultiPolygon::getPolygon(size_t index) const
{
	return _polygonContainer[index];
}

Polygon MultiPolygon::getPolygon(size_t index)
{
	return _polygonContainer[index];
}

size_t MultiPolygon::getPolygonCount() const
{
	return _polygonContainer.size();
}

void MultiPolygon::clear()
{
	_polygonContainer.clear();
}

bool MultiPolygon::isEmpty() const
{
	return _polygonContainer.empty();
}

}
}